import React from 'react';
import {Form, Input, Modal, Checkbox } from 'antd';
const LayerCreateForm = (props) => {
    const {
        form,
        isModal,
        onCancel,
        onOk,
        width,
        centered,
        closable,
        style,
        wrapClassName,
        title,
        bodyStyle
    }=props
    return (
        <Modal
            visible={isModal}
            title={title}
            okText="修改"
            cancelText="取消"
            onCancel={onCancel}
            onOk={onOk}
            width={width}
            centered={centered}
            closable={closable}
            style={style}
            wrapClassName={wrapClassName}
            bodyStyle={bodyStyle}
        >
            <Form
                form={form}
                name="layerAddress"

            >
                <Form.Item
                    name="name"
                    label="收货人"
                    rules={[
                        {
                            required: true,
                            message: 'Please input the title of collection!',
                        },
                    ]}
                >
                    <Input />
                </Form.Item>
                <Form.Item
                    name="cellphone"
                    label="联系方式"
                    rules={[
                        {
                            required: true,
                            message: 'Please input the title of collection!',
                        },
                    ]}
                >
                    <Input />
                </Form.Item>
                <Form.Item
                    name="area"
                    label="所在地区"
                    rules={[
                        {
                            required: true,
                            message: 'Please input the title of collection!',
                        },
                    ]}
                >
                    <Input />
                </Form.Item>
                <Form.Item
                    name="address"
                    label="详细地址"
                    rules={[
                        {
                            required: true,
                            message: 'Please input the title of collection!',
                        },
                    ]}
                >
                    <Input />
                </Form.Item>
                <Form.Item
                    name="remember"
                    label='设置为默认地址'
                    valuePropName="checked"
                >
                    <Checkbox  />
                </Form.Item>
            </Form>
        </Modal>
    );
};
export default LayerCreateForm;